<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #3b82f6;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
        }

        body {
            margin: 0;
            padding: 0;
            background: var(--background-light);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            border-radius: 40px;
        }

        .content {
            height: 100%;
            overflow-y: auto;
            background: var(--background-light);
            padding-bottom: 80px;
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .back-button {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
        }

        .cart-items {
            padding: 15px;
        }

        .cart-item {
            background: white;
            border-radius: 12px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .item-img {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
        }

        .item-info {
            flex: 1;
        }

        .item-name {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .item-price {
            font-size: 14px;
            color: #ee0a24;
            font-weight: 500;
        }

        .item-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .quantity-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .decrease-btn {
            background: #f3f4f6;
            color: var(--text-secondary);
        }

        .increase-btn {
            background: var(--primary-color);
            color: white;
        }

        .quantity {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            min-width: 20px;
            text-align: center;
        }

        .cart-summary {
            background: white;
            padding: 15px;
            margin: 15px;
            border-radius: 12px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .summary-item:last-child {
            margin-bottom: 0;
            padding-top: 10px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        .total-price {
            font-size: 18px;
            font-weight: 600;
            color: #ee0a24;
        }

        .checkout-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 15px;
            background: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .checkout-total {
            flex: 1;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .checkout-price {
            font-size: 20px;
            font-weight: 600;
            color: #ee0a24;
        }

        .checkout-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 24px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .checkout-button:hover {
            opacity: 0.9;
        }

        .checkout-button:active {
            transform: scale(0.98);
        }

        .remarks {
            background: white;
            padding: 15px;
            margin: 15px;
            border-radius: 12px;
        }

        .remarks-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .remarks-input {
            width: 100%;
            padding: 10px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            font-size: 14px;
            resize: none;
        }

        .remarks-input::placeholder {
            color: var(--text-secondary);
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="header">
                <a href="restaurant-detail.html" class="back-button">
                    <i class="bi bi-chevron-left"></i>
                </a>
                <div class="header-title">确认订单</div>
            </div>

            <div class="cart-items">
                <div class="cart-item">
                    <img src="https://images.unsplash.com/photo-1562967914-608f82629710?w=200&auto=format&fit=crop" alt="红烧肉" class="item-img">
                    <div class="item-info">
                        <div class="item-name">红烧肉</div>
                        <div class="item-price">¥38</div>
                    </div>
                    <div class="item-controls">
                        <button class="quantity-btn decrease-btn">
                            <i class="bi bi-dash"></i>
                        </button>
                        <span class="quantity">1</span>
                        <button class="quantity-btn increase-btn">
                            <i class="bi bi-plus"></i>
                        </button>
                    </div>
                </div>

                <div class="cart-item">
                    <img src="https://images.unsplash.com/photo-1563379926898-05f4575a45d8?w=200&auto=format&fit=crop" alt="清炒时蔬" class="item-img">
                    <div class="item-info">
                        <div class="item-name">清炒时蔬</div>
                        <div class="item-price">¥18</div>
                    </div>
                    <div class="item-controls">
                        <button class="quantity-btn decrease-btn">
                            <i class="bi bi-dash"></i>
                        </button>
                        <span class="quantity">1</span>
                        <button class="quantity-btn increase-btn">
                            <i class="bi bi-plus"></i>
                        </button>
                    </div>
                </div>

                <div class="cart-item">
                    <img src="https://images.unsplash.com/photo-1534422298391-e4f8c172dddb?w=200&auto=format&fit=crop" alt="米饭" class="item-img">
                    <div class="item-info">
                        <div class="item-name">米饭</div>
                        <div class="item-price">¥2</div>
                    </div>
                    <div class="item-controls">
                        <button class="quantity-btn decrease-btn">
                            <i class="bi bi-dash"></i>
                        </button>
                        <span class="quantity">2</span>
                        <button class="quantity-btn increase-btn">
                            <i class="bi bi-plus"></i>
                        </button>
                    </div>
                </div>
            </div>

            <div class="remarks">
                <div class="remarks-title">订单备注</div>
                <textarea class="remarks-input" rows="3" placeholder="请输入口味、偏好等要求"></textarea>
            </div>

            <div class="cart-summary">
                <div class="summary-item">
                    <span>商品小计</span>
                    <span>¥60</span>
                </div>
                <div class="summary-item">
                    <span>配送费</span>
                    <span>¥5</span>
                </div>
                <div class="summary-item">
                    <span>优惠券</span>
                    <span>-¥15</span>
                </div>
                <div class="summary-item">
                    <span>实付金额</span>
                    <span class="total-price">¥50</span>
                </div>
            </div>

            <div style="height: 80px;"></div>
        </div>

        <div class="checkout-bar">
            <div class="checkout-total">
                合计 <span class="checkout-price">¥50</span>
            </div>
            <button class="checkout-button">提交订单</button>
        </div>
    </div>
</body>
</html> 